package org.skipper.common.constant;

/**
 * Created with IntelliJ IDEA.
 * Description: 自定义请求头
 *
 * @author shoujian
 * Date: 2023-07-17
 * Time: 16:32
 */
public enum HeaderKeys {

  // 客户端请求中，默认的请求头 start
  ACCESS_KEY("AccessKeyId", "加密key"),

  NONCE_KEY("Nonce", "随机数"),

  TIMESTAMP_KEY("TimeStamp", "时间戳"),

  SIGNATURE_KEY("Signature", "签名"),

  USER_ID_KEY("userId", "用户id"),

  TOKEN_KEY("token", "token"),

  A_KEY("a", "产品id"),

  V_KEY("v", "版本号"),

  C_KEY("c", "渠道号"),

  PLATFORM_KEY("platform", "平台"),

  DEVICE_ID_KEY("deviceId", "设备id"),

  LANGUAGE_KEY("language", "语言"),
  // 客户端请求中，默认的请求头 end

  // gateway 设置入的请求头 start
  IS_SIGN_KEY("isSign", "是否签名"),

  IS_LOGIN_KEY("isLogin", "是否登录"),

  IP_KEY("ip", "ip"),
  // gateway 设置入的请求头 end

  ;

  private String headerKey;

  private String description;

  public String getHeaderKey() {
    return headerKey;
  }

  public String getDescription() {
    return description;
  }

  HeaderKeys(String headerKey, String description) {
    this.headerKey = headerKey;
    this.description = description;
  }

}
